<%@page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>创业武汉合伙人</title>
    <%@include file="common/header.jsp"%>
    </head>
<body>
<!-- page 容器 -->
<div class="page">
    <!-- 标题栏 -->
    <%--<div class="bar bar-header-secondary">--%>
        <%--<div class="searchbar">--%>
            <%--<a class="searchbar-cancel" href="javascript:history.go(-1)">取消</a>--%>
            <%--<div class="search-input">--%>
                <%--<label class="icon icon-search" for="search"></label>--%>
                <%--<input type="search" id='search' placeholder='搜索关键词...'/>--%>
            <%--</div>--%>
        <%--</div>--%>
    <%--</div>--%>
    <header class="bar bar-nav bgcolor nobottom" style="position: relative">
        <button class="button button-link button-nav whitecolor pull-left" href="javascript:history.go(-1)">
            <span class="icon icon-left"></span>

        </button>
        <%--<%@include file="common/headerPic.jsp" %>--%>

        <h1 class="title whitecolor">
            搜索<c:if test="${type=='ds'}">导师</c:if><c:if test="${type=='activity'}">活动</c:if><c:if test="${type=='cyzj'}">创业之家</c:if>
        </h1>
    </header>

    <div class="bar" style="position: relative">
        <div class="searchbar">
            <div class="search-input">
                <a class="pull-right themecolor" href="javascript:;" id="searchA">搜索</a>
                <%--<label class="icon icon-search" for="search"></label>--%>
                <input type="hidden" id="type" value="${type}" />
                <input type="search" id='search' style="width: 85%" placeholder='搜索关键词'/>
            </div>
        </div>
    </div>


    <!-- 工具栏 -->
   <!-- <nav class="bar bar-tab">
        <a class="tab-item active" href="#">
            <span class="icon icon-home"></span>
            <span class="tab-label">首页</span>
        </a>
        <a class="tab-item" href="#">
            <span class="icon icon-star"></span>
            <span class="tab-label">收藏</span>
        </a>
        <a class="tab-item" href="#">
            <span class="icon icon-settings"></span>
            <span class="tab-label">设置</span>
        </a>
    </nav>-->

    <!-- 这里是页面内容区 -->
    <div class="content bar-header-secondary">
        <%--<div class="row p_row">--%>
            <%--<div class="col-33 m_top">--%>
                <%--<div class="search_center"><img src="images/wpzoom_.png" style="width: 3rem;height: 3rem"></div>--%>
                <%--<div class="search_center little_size">导师</div>--%>
            <%--</div>--%>
            <%--<div class="col-33 m_top">--%>
                <%--<div class="search_center"><img src="images/-fill.png" style="width: 3rem;height: 3rem"></div>--%>
                <%--<div class="search_center little_size">创业之家</div>--%>
            <%--</div>--%>
            <%--<div class="col-33 m_top">--%>
                <%--<div class="search_center"><img src="images/localplay.png" style="width: 3rem;height: 3rem"></div>--%>
                <%--<div class="search_center little_size">活动</div>--%>
            <%--</div>--%>
        <%--</div>--%>


    </div>
</div>
</body>
</html>
<%@include file="common/footer.jsp"%>
<script>
    $.init();
    function search(){
        var param = {};
        param.type=$("#type").val();
        param.title=$("#search").val();
        $.ajax({
            data:param,
            url:"toSearch.do",
            type: "POST",
            dataType: "json",
            success:function(data){
                location.href = data.forwardUrl;
            }
        })
    }
    $('#search').keydown(function(e){
        if(e.keyCode==13){
            search();
        }
    });

    $("#searchA").click(function(){
       search();
    });
</script>